<?php

$filename=$_GET['filename'];
//告诉浏览器通多附件形式处理文件
header('content-disposition:attachment;filename='.basename($filename));

header('content-length:'.filesize($filename));
readfile($filename);



?>